package gist

import java.util.regex.Pattern

case class Y(num: Int, x: X)

object MinxTest extends App {

  val x = new X("x1")

  val y = Y(1, new X("x1"))

  println(x == y.x)

  y match {
    case Y(1, x) => println("true")
    case _ => println(false)
  }
  
  def inLanguage(title: String) = {
    val pattern = ("[\u4e00-\u9fa5]".r).pattern
    if (pattern.matcher(title).find() && title.contains("����") || title.contains("����") ) "����" else "Ӣ��"
  }

  println(inLanguage("Beat The Drum Slowly ����"))

  println(Array(1,2,3))
  
  import scala.reflect.runtime.universe._
  
}